package io.github.cunyu1943;

/**
 * Created with IntelliJ IDEA.
 *
 * @Package : io.github.cunyu1943
 * @ClassName : EqualsTest.java
 * @CreateTime : 2022/11/29 22:04
 * @Version : 1.0
 * @Author : 村雨遥
 * @Email : 747731461@qq.com
 * @公众号 : 村雨遥
 * @Website : https://cunyu1943.github.io/JavaPark
 * @Description : 比较两个字符串内容是否相等
 */
public class EqualsTest {
    public static void main(String[] args) {
        String str1 = "村雨遥";
        String str2 = "村雨";
        String str3 = "村雨";

        System.out.println(str1.equals(str2));
        System.out.println(str2.equals(str3));

    }
}
